Skip to content

Instantly share code, notes, and snippets.

@markasoftware
markasoftware / enterprise_token.rb
Last active April 2, 2026 19:56
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################
@witmin
witmin / ffmpeg-mp4-to-animated-webp.md
Last active April 2, 2026 19:54
Convert MP4 file to animated WebP in ffmpeg

Convert MP4 file to animated WEBP file in ffmpeg CLI

1. Install ffmpeg CLI through homebrew

In terminal.app, install ffmpeg through homebrew

brew install ffmpeg

Validate the installation:

@jabberwock
jabberwock / smart-card-fix.sh
Last active April 2, 2026 19:54
Fix gpg --card-status "no such device" for non-root users in Linux
#!/usr/bin/env bash
# GPG/YubiKey Repair Script - "The Nuclear Option"
# Addresses: "No such device" and "Service is not running"
# very useful when Linux is a guest VM needing a host yubikey
set -e
echo "--- GPG Hardware & Service Reset ---"
# 1. Kill competing processes and services
sudo pkill -9 gpg-agent scdaemon pcscd 2>/dev/null
sudo systemctl disable --now pcscd.socket pcscd.service 2>/dev/null
@artemgetmann
artemgetmann / claude-code-token-saving-guide.md
Last active April 2, 2026 19:51
Practical workflow for reducing token usage in Claude Code while preserving session continuity. Includes compacting strategies, CLAUDE.md structure, modular context management, and prompt engineering tips.

🧠 How to Save Context Tokens When Using Claude Code

This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).


✅ Setup: Populate CLAUDE.md

Claude loads CLAUDE.md automatically at session start.

S3 Storage Benchmark — Round 3

6-Way Comparison with Compression Variants
MinIO vs SeaweedFS vs Garage vs Garage-zstd vs HS5 vs RustFS

Date: 2026-03-25
Method: Python boto3 direct, sub-ms accuracy
Data: 746 real TDnet filing documents, 600.2 MB
Each backend tested in isolation — fresh volumes, one at a time, no resource contention

@Kogoro
Kogoro / collection.txt
Last active April 2, 2026 19:51
AWTRIX 3 RTTTL Collection
//This is a collection of RTTTLs that can be used with any RTTTL player. Foremost it is for the Ulanzi TC001 LED Matrix.
//Onlineplayer: https://adamonsoon.github.io/rtttl-play/
Original1:d=4,o=5,b=140:16e,16g,16a,16c
//ESPHOME - https://esphome.io/components/rtttl.html
two_short:d=4,o=5,b=100:16e6,16e6
long:d=1,o=5,b=100:e6
siren:d=8,o=5,b=100:d,e,d,e,d,e,d,e
@gsamat
gsamat / 00-CLAUDE.md
Created March 18, 2026 20:45
Технический аудит с ИИ-помощником

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What This Is

Technical and architectural audit of a system. This is an evolving documentation vault, not a codebase.

Language

Automate GitHub Release

This script automates the publishing of a new release on GitHub and runs npm deploy whenever the version number in package.json is changed.

It requires two secret tokens in the repo settings:

  1. GH_TOKEN - a fine-grained token with read/write permissions for content and pull releases.
  2. NPM_TOKEN - a CI token from your NPM account.

Learn more about how it works here.

@Cynnexis
Cynnexis / Install-apk.md
Created August 3, 2021 15:42
Install APK on android with ADB

APK Installation with adb

Tutorial

Make sure that your phone has USB debugging enabled.

Connect your phone to your computer, and make sure that the OS identified the device with:

adb devices -l